﻿
namespace anael.Data.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using System.Data.Objects.DataClasses;
    using System.Linq;
    using System.ServiceModel.DomainServices.Hosting;
    using System.ServiceModel.DomainServices.Server;


    // The MetadataTypeAttribute identifies CategorieMetadata as the class
    // that carries additional metadata for the Categorie class.
    [MetadataTypeAttribute(typeof(Categorie.CategorieMetadata))]
    public partial class Categorie
    {

        // This class allows you to attach custom attributes to properties
        // of the Categorie class.
        //
        // For example, the following marks the Xyz property as a
        // required property and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz { get; set; }
        internal sealed class CategorieMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private CategorieMetadata()
            {
            }

            public int Id { get; set; }

            public string nom { get; set; }

            public EntityCollection<Personne> Personne { get; set; }
        }
    }

    // The MetadataTypeAttribute identifies PersonneMetadata as the class
    // that carries additional metadata for the Personne class.
    [MetadataTypeAttribute(typeof(Personne.PersonneMetadata))]
    public partial class Personne
    {

        // This class allows you to attach custom attributes to properties
        // of the Personne class.
        //
        // For example, the following marks the Xyz property as a
        // required property and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz { get; set; }
        internal sealed class PersonneMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private PersonneMetadata()
            {
            }

            public Categorie Categorie { get; set; }

            public int Id { get; set; }

            public short nbrContact { get; set; }

            public short nbrGroupe { get; set; }

            public short nbrPhoto { get; set; }

            public short sexe { get; set; }

            public short status { get; set; }
        }
    }
}
